package com.basic.business.unsalableBacklog.service;


import com.basic.business.kanban.vo.UnsalableCollectRespVo;
import com.basic.business.kanban.vo.UnsalableReplayPageReqVo;
import com.basic.business.kanban.vo.UnsalableReplayRespVo;
import com.basic.business.unsalableBacklog.domain.TUnsalableBacklog;
import com.basic.common.core.service.IBaseService;

import java.util.List;

/**
 * 滞销代办事项Service接口
 *
 * @author zhaoxy_jn@163.com
 */
public interface ITUnsalableBacklogService extends IBaseService<TUnsalableBacklog> {

    /**
     * 插入待办事项
     * @param tUnsalableBacklog
     * @return
     */
    public int insertBacklog(TUnsalableBacklog tUnsalableBacklog);

    /**
     * 滞销数据复盘，获取已优化数据
     * @param unsalableReplayPageReqVo
     * @return
     */
    public List<UnsalableReplayRespVo> getOptimizeList(UnsalableReplayPageReqVo unsalableReplayPageReqVo);

    /**
     * 滞销复盘数据汇总
     * @param unsalableReplayPageReqVo
     * @return
     */
    UnsalableCollectRespVo getUnsalableCollectData(UnsalableReplayPageReqVo unsalableReplayPageReqVo);

    /**
     * 根据商品id获取近1个月待办事项数量
     * @param goodsId
     * @return
     */
    public int getBackLogCountByGoodsId(String goodsId);

    /**
     * 处理超时待办事项
     */
    void handleTimeoutBacklog();
}
